using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Youshow.Ace.Domain.Models;

namespace YayiMgr.Domain.BasicData
{
    [Comment("患者信息表")]
    public class Patients:BaseModel<Guid>
    {
        public new Guid Id { get; set; }
        [Comment("患者姓名")]
        [MaxLength(10)]
        public string Name { get; set; }
        [Comment("性别")]
        [MaxLength(2)]
        public string? Gender { get; set; }
        [Comment("出生日期")]
        public DateTime? Birthday { get; set; }
        [Comment("身份证号")]
        [MaxLength(20)]
        public string? IDCardNum { get; set; }
        [Comment("手机号")]
        [MaxLength(20)]
        public string PhoneNum { get; set; }
        [Comment("邮箱")]
        [MaxLength(50)]
        public string? Email { get; set; }
        [Comment("血型")]
        [MaxLength(20)]
        public string? BloodType { get; set; }
        [Comment("过敏史")]
        public string Allergies { get; set; }
        [Comment("住址")]
        [MaxLength(100)]
        public string? Address { get; set; }
        [Comment("紧急联系人")]
        [MaxLength(20)]
        public string? EmergencyContact { get; set; }
        [Comment("紧急联系电话")]
        [MaxLength(20)]
        public string? EmergencyPhone { get; set; }
        [Comment("备注")]
        public string? Remarks { get; set; }

        
        [Comment("患者来源")]
        [MaxLength(20)]
        public string? Source { get; set; }
        [Comment("患者标签")]
        [MaxLength(50)]
        public string? Tags { get; set; }
        [Comment("行业")]
        [MaxLength(20)]
        public string? Work { get; set; }
        [Comment("患者分组")]
        [MaxLength(20)]
        public string? Group { get; set; }


        public DateTime CreateTime { get; set; }
    }
}